Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <script> function padding(id) { document.getElementById(id).style.padding = "15px"; } </script> </head> <body> <table id="myTable" style="border:1px solid black"> <tr> <td>100</td> <td>200</td> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <p> <input type="button" onclick="padding('myTable')" value="Change padding"> </p> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_dom_table_padding by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:10 GMT --> </html>
Result:
Try it Yourself - © w3schools.com